const Layout = () => import('@/layout/index.vue')

export default {
  name: 'Demo',
  path: '/section',
  component: Layout,
  redirect: '/section/department',
  meta: {
    title: '部门与科室',
    icon: 'fluent-emoji-high-contrast:department-store',
    role: ['admin'],
    requireAuth: true,
    order: 3,
  },
  children: [
    {
      name: 'Department',
      path: 'department',
      component: () => import('./department/index.vue'),
      meta: {
        title: '部门管理',
        icon: 'mingcute:department-fill',
        role: ['admin'],
        requireAuth: true,
        keepAlive: true,
      },
    },
    {
      name: 'Unit',
      path: 'unit',
      component: () => import('@/views/section/unit/index.vue'),
      meta: {
        title: '科室管理',
        icon: 'healthicons:eco-care',
        role: ['admin'],
        requireAuth: true,
        keepAlive: true,
      },
    },
  ],
}
